package com.cefa.edu.dao;


import com.cefa.edu.pojo.School;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface SchoolMapper {

    /**
     * @return
     * 查找所有学校的id和名字
     */
    @Select("select id,school_name as schoolName from cefa_edu_school")
    List<School> findSchoolInfo();
}
